package com.weicx.wuzhiops.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * @author:
 * @date: 2022-12-06 14:08:24
 * @since: 1.0
 */
@ApiModel(value = "操作日志响应")
public class EventLogVO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "操作描述")
    private String logInfo;

    @ApiModelProperty(value = "操作类型")
    private String type;

    @ApiModelProperty(value = "操作用户", notes = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "操作账号")
    private String username;

    @ApiModelProperty(value = "操作IP")
    private String ip;

    @ApiModelProperty(value = "操作时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @ApiModelProperty(value = "日志参数")
    private String paramsJson;

    public EventLogVO() {
    }

    public EventLogVO(Long id, String logInfo, String type, String nickname, String username, String ip, LocalDateTime time, String paramsJson) {
        this.id = id;
        this.logInfo = logInfo;
        this.type = type;
        this.nickname = nickname;
        this.username = username;
        this.ip = ip;
        this.time = time;
        this.paramsJson = paramsJson;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public String getParamsJson() {
        return paramsJson;
    }

    public void setParamsJson(String paramsJson) {
        this.paramsJson = paramsJson;
    }
}
